home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds / netroute.man < prev    next >
Encoding:
Text File  |  1992-06-23  |  5.2 KB  |  132 lines

  1. ' $Header: /sprite/src/cmds/netroute/RCS/netroute.man,v 1.6 92/06/23 11:31:23 jhh Exp $ SPRITE (Berkeley)
  2. .so \*(]ltmac.sprite
  3. .HS NETROUTE cmds
  4. .BS
  5. .SH NAME
  6. netroute \- Set up host names, addresses, and machine types
  7. .SH SYNOPSIS
  8. \fBnetroute\fR  [\fBoptions\fR]
  9. .SH OPTIONS
  10. .IP "[none]"
  11. Print out the kernel's route table.
  12. .IP "\fB\-h \fIhost\fR" 5
  13. The host to operate upon. Either a hostname or Sprite ID.
  14. .IP "\fB\-f \fIfile\fR"
  15. Use given file for the Sprite host database.
  16. .IP "\fB\-g \fIfile\fR"
  17. Use given file for the Sprite gateway database.
  18. .IP "\fB\-favor \fInet\fR"
  19. Try to establish routes across networks of type \fInet\fR.
  20. .IP "\fB\-disfavor \fInet\fR" 
  21. Try not to establish routes across networks of type \fInet\fR.
  22. .IP "\fB\-ether \fIff:oo:oo:bb:aa:rr@aa.bb.cc.dd\fR" 40
  23. Establish a route to a host with these ethernet and internet addresses.
  24. .IP "\fB\-ultra \fIhh/ii@aa.bb.cc.dd\fR"
  25. Establish a route to a host with these ultranet and internet addresses.
  26. .IP "\fB\-fddi \fIqq:ww:ee:rr:tt:yy@aa.bb.cc.dd\fR"
  27. Establish a route to a host with these fddi and internet addresses.
  28. .IP "\fB\-p\fR" 5
  29. Print routes.  
  30. .IP "\fB\-i\fR"
  31. Install routes. This is the default operations if no operations are given.
  32. .IP "\fB\-d \fIrouteID\fR"
  33. Delete the route with the given ID.
  34. .IP "\fB\-m \fImachine_type\fR"
  35. Host's machine type, where the host is specified by the \fB-h\fR option.
  36. .IP "\fB\-v\fR"
  37. Verbose.
  38. .IP "\fB\-n\fR"
  39. Print actions instead of doing them.  Not fully supported yet.
  40. .BE
  41. .SH INTRODUCTION
  42. .LP
  43. This command is used to access the kernel's internal route table.
  44. This route table is used to determine routes for sending RPC packets
  45. between the hosts. The route table has nothing to do with user-level
  46. network communication via TCP/IP or similar protocols.
  47. Normally \fBnetroute\fR is invoked during the boot script to install routes
  48. to all the hosts found in \fC/etc/spritehosts\fR 
  49. (\fC/etc/spritehosts.new\fR during the transition period to the new 
  50. spritehosts file format). 
  51. The \fC/etc/spritehosts\fR file 
  52. contains the spriteID of the host,
  53. a network type and address (i.e. ethernet),
  54. an internet address,
  55. a machine type,
  56. and a name plus optional aliases.
  57. The spriteID is used internally for RPC communication between Sprite hosts.
  58. The network type and network address are used to map the Sprite ID
  59. to the correct local network address.  The internet address is used
  60. for the internet protocols.  The machine type is used when expanding
  61. the string ``$MACHINE'' inside pathnames.  The file server must know
  62. its clients machine types in order to do this correctly.  The names
  63. are used to make console error messages contain a human understandable
  64. host name, and are also used with the internet library routines.
  65. .SH USAGE
  66. .LP
  67. There are three operations that can be performed on routes.  One
  68. is to print them, another is to install them, and the last is to
  69. delete them.
  70. These operations are specified with the \fBp\fR,
  71. \fBi\fR and \fBd\fR options.
  72.  
  73. .SH INSTALLING ROUTES
  74. .LP
  75. For installing hosts, the information is normally taken from a
  76. host database file.  A host can be installed from scratch by specifying
  77. its name (\fBh\R option), machine type (\fBm\R option), and
  78. network addresses.  The network addresses are specified using
  79. the \fBether\R, \fBultra\fR, and \fBfddi\fR options.  The strings
  80. passed to these options must be of the form \fInet_address@inet_address\fR
  81. because each network interface has both a network address and
  82. an internet address.  At least one must be specified.
  83. .LP
  84. Routes to hosts can be installed only over one network type.  When
  85. they are installed, \fBnetroute\fR uses a list of types to check
  86. in a predefined order (use the \fBv\fR option to find this order.)
  87. It will try to establish a route using the first network type;
  88. if that fails, it will try the next, etc.  This list can be changed
  89. dynamically using the \fBfavor\fR and \fBdisfavor\fR options to
  90. either favor one network type most or one network type the least,
  91. respectively.  Both options can be used at the same time.
  92. .LP
  93. For example, normally routes are installed over ethernet.  
  94. To change it so that fddi routes are installed where possible,
  95. use:
  96. .sp
  97. % netroute -i -favor fddi
  98. .sp
  99. This will install fddi routes to those machines that support fddi
  100. routes, and ethernet routes to the remainder.
  101. .LP
  102. When new routes are installed successfully, the previous route is
  103. removed.
  104.  
  105. .SH DELETING ROUTES
  106.  
  107. .LP
  108. Routes are deleted by specifying a route ID using the
  109. \fBd\fR option.
  110.  
  111. .SH PRINTING ROUTES
  112. .LP
  113. When routes are printed, the following information is given about
  114. each route: the Sprite ID of the host to which the route goes;
  115. the hostname and the machine type of that host; a description of
  116. the route from the kernel; the route ID, and the route ID shifted
  117. by right by 16 places; the network type of the route;  the
  118. network address of the interface from which the route sends
  119. packets;  the protocol that the route serves;
  120. the route flags; a reference count to the route; min and max
  121. packet sizes over the route; min and max RPC sizes over the route;
  122. and the network address of the destination host to which packets
  123. are sent.
  124.  
  125. .SH FILES
  126. .DS L
  127. \fB/etc/spritehosts\fR    Contains the old host database
  128. \fB/etc/spritehosts.new\fR Contains the new host database.
  129. .DE
  130. .SH KEYWORDS
  131. ethernet, ultranet, fddi, internet, net, route, $MACHINE 
  132.